package http.util;

import java.util.Objects;

public class ArrayUtil {
    public static boolean isNotEmpty(Object[] arr){
        return !isEmpty(arr);
    }
    public static boolean isEmpty(Object[] arr){
        return arr == null || arr.length == 0;
    }
    public static boolean contain(Object[] arr,Object val){
        if(isNotEmpty(arr)){
            for (Object obj : arr) {
                if(Objects.equals(obj,val)){
                    return true;
                }
            }
        }
        return false;
    }




}
